<div class="box">
	<div class="hd">创建一个视频分类 &darr;<span>album的类型0为相册；1为视频</span></div>
	<div class="bd">
            <form action="<?php 
            echo site_url("admin/upVideo_manag/add_album");
            
            ?>" method="post" enctype="multipart/form-data">
        	<table class="formtable">
            	<tr>
                	<th>分类名称</th>
                    <td><input type="text" size="30" name="title" /></td>
                </tr>
              <!--  <tr>
                	<th>相册封面</th>
                    <td><input type="file" size="30" name="cover" /></td>
                </tr> -->
                <tr>
                	<th>分类描述</th>
                    <td>
                    <textarea rows="5" cols="70" name="desc" id="desc"></textarea></td>
                </tr>
                <tr>
                	<th>顺序</th>
                    <td><input type="text" size="5" name="order" /></td>
                </tr>
                <tr>
                	<th><input name="album_type" type="hidden" value="1"></th>
                    <td><input type="submit" name="add_submit" value="创建分类" /></td>
                </tr>
            </table>
        </form>
    </div>
</div>






<?php 

//print_r($video_list);
//print_r($album_cats);

            ?>
	
            
<div class="box">
	<div class="hd">未分类视频管理 &darr;</div>
    <div class="bd">
    	<form action="<?php 
            echo site_url("admin/upVideo_manag/add_video");
            
            ?>" method="post" enctype="multipart/form-data">
        	<table class="formtable">
            	<tr>
                	<th>视频名称</th>
                    <td><input type="text" size="30" name="title" /></td>
                </tr>
                <tr>
                	<th>视频地址</th>
                    <td><select name="path">
  <?php foreach($flv as $k=>$v) { echo '<option value="'.$bucket_url.'/'.$v['Key'].'">'.$v['Key'].'</option>';} ?>
                    </select></td>
                </tr>
                <tr>
                	<th>所属分类</th>
                    <td><select name="album_id">

                        <?php
                        
                        foreach($album_cats as $key=>$val){                            
                          echo "<option value=\"{$val["id"]}\">{$val["title"]}</option>"  ;
                        }
                        
                        ?></select>
                        
                        <?php //echo form_dropdown('album_id',array('0'=>'宣传片','1'=>'微电影'),0);?>
                    
                    
                    </td>
                </tr>
                <tr>
                	<th>视频封面</th>
                    <td><input type="file" size="30" name="cover" /></td>
                </tr> 
                <tr>
                	<th>视频描述</th>
                    <td>
                    <textarea rows="5" cols="70" name="desc" id="desc"></textarea></td>
                </tr>
                <tr>
                	<th>顺序</th>
                    <td><input type="text" size="5" name="order" /></td>
                </tr>
                <tr>
                	<th><input name="type" type="hidden" value="1"></th>
                    <td><input type="submit" name="add_submit" value="保存" /></td>
                </tr>
            </table>
        </form>
    </div>
</div>